<?php
/**
 * system_wrapper.inc
 * Template: Div based wrapper with horizontal menues. 
 * @copyright	Copyright(c) 2002-2010 Bjorn Winberg
 * @author		Bjorn Winberg <cms@anomalye.net>
 * @license		http://www.gnu.org/licenses/gpl.html GNU General Public License version 2 
 * @package		AnomalyWiki
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
	<link type="text/css" href="<?php echo $this->getSkinUrl('common.css');?>" rel="stylesheet" />
	<link rel="icon" href="favicon.ico" type="image/x-icon" />
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 
	<script type='text/javascript' src='scripts/common.js'></script>
	<?php
	foreach($this->mHtmlHeaders as $header){
		echo "\t" . $header . "\n";
	}
	?>
</head>
<body>
	<div class="mainWrapper">
		<div class="mainLogo">
			<!--<img src="<?php //echo system_getSkinUrl('graphics/wrapper_titleRow.png');?>" />-->
			<h1><?php //echo system_loadStr('SYSTEM_SITE_NAME');?></h1>
		</div>
		<?php
			echo $this->generateMenu('auth', 'AUTH', 'authMenu');
		?>
		<?php
			echo $this->generateMenu('system', 'MAIN', 'toolsMenu');
		?>
		<div class="mainContent">
			<?php
				foreach($this->mFeedback['warn'] as $warning){
					echo '<div class="errorBox">' . $warning . '</div>';
				}
				foreach($this->mFeedback['info'] as $info){
					echo '<div class="editBox">' . $info . '</div>';
				}
				echo $aParams['moduleContents'];
			?>
		</div>
		<div class="mainPush"></div>
	</div>
	<div class="mainFooter">
		<div class="mainFooterCopy">
		<?php //echo system_loadStr('SYSTEM_COPYRIGHT');?> <a href="mailto:<?php //echo system_loadStr("SYSTEM_WEBMASTER_MAIL");?>"><?php //echo system_loadStr('SYSTEM_COPYNAME');?></a>
		</div>
		<div class="mainFooterUtc">
		<?php 
			echo $this->localString('POWERED_BY_UTC', array($this->generateGMTScript()));
		?>
		</div>
		<div class="mainFooterDebug">
		<?php
			$scriptTime = number_format((microtime(true) - $aParams['scriptStart']), 3);
			echo ModuleFactory::getString('system', 'FOOTER_DEBUG', array($scriptTime, $aParams['queryCount']));
		?>
		</div>
	</div>
</body>
</html>
